package com.ln.demo07;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/10/26 9:45
 */
public class Test007 {
    public static void main(String[] args) {
        People people = new People();
        people.show("nihaoshijie");
    }
}
@Target({ElementType.TYPE,ElementType.FIELD,ElementType.METHOD,ElementType.PARAMETER})
@interface Min{

}
@Min
class People{
    @Min
    private Integer age;

    @Min
    public void show(@Min String name){
        System.out.println("========="+name);
    }
}
@Min
@interface Man{

}
